public class Man {
    public String name;
    public int age;
    public float height;
    public float weight;
    public Woman woman;

    public Man() {
    }

    public Man(String n, int a, float h, float w) {
        name = n;
        age = a;
        height = h;
        weight = w;
    }

    public Man(String n, int a, float h, float w, Woman wm) {
        name = n;
        age = a;
        height = h;
        weight = w;
        woman = wm;
    }

    public void eat(String food) {
        System.out.println("吃" + food);
    }

    public void sleep(String bed) {
        System.out.println("在" + bed + "睡觉");
    }

    public void playGame(String name) {
        System.out.println("玩" + name);
    }

    public float takeMoney() {
        if (age <= 30) {
            return 100000.0f;
        } else if (age <= 50) {
            return 10000.0f;
        } else {
            return 1000.0f;
        }

    }

    public void introduce() {
        System.out.println("我叫" + name + "今年" + age + "岁" + "身高" + height + "m" + "体重" + weight + "斤");
    }
}
